package com.example.shopping.pojo;

import java.util.List;

/*
Create by 苍狼 于 2020/1/16
站在巅峰看世界，
落在深渊思人生。
*/
//规格明细单
public class Specification {
    private int id;
    //规格名称
    private String specName;
    //关联表ID
    private int copyId;

    private List<SpecificationOption> specificationOptionList;

    public Specification() {
    }

    public Specification(String specName, int copyId, List<SpecificationOption> specificationOptionList) {
        this.specName = specName;
        this.copyId = copyId;
        this.specificationOptionList = specificationOptionList;
    }

    public Specification(int id, String specName, int copyId) {
        this.id = id;
        this.specName = specName;
        this.copyId = copyId;
    }

    public Specification(int id, String specNname, int copyId, List<SpecificationOption> specificationOptionList) {
        this.id = id;
        this.specName = specNname;
        this.copyId = copyId;
        this.specificationOptionList = specificationOptionList;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSpecspecName() {
        return specName;
    }

    public void setSpecspecName(String specNname) {
        this.specName = specName;
    }

    public int getCopyId() {
        return copyId;
    }

    public void setCopyId(int copyId) {
        this.copyId = copyId;
    }

    public List<SpecificationOption> getSpecificationOptionList() {
        return specificationOptionList;
    }

    public void setSpecificationOptionList(List<SpecificationOption> specificationOptionList) {
        this.specificationOptionList = specificationOptionList;
    }

    @Override
    public String toString() {
        return "Specification{" +
                "id=" + id +
                ", specName='" + specName + '\'' +
                ", copyId=" + copyId +
                ", specificationOptionList=" + specificationOptionList +
                '}';
    }
}
